public class Bird extends Animal implements IRuing,Iflying{  //先继承再实现，继承一个类，实现多个接口
    public Bird(String name, int age) {
        super(name,age);
    }
    public void eat() {
        System.out.println(name +"吃鸟粮");
    }

    @Override
    public void run() {
        System.out.println(name+"正在用鸟腿跑");

    }

    @Override
    public void fly() {
        System.out.println(name+"正在用翅膀飞");

    }
}
